ARG REPO=10.10.84.156:8015
ARG PACKAGE=$REPO/library/jdk11:maven_em
ARG JRE=$REPO/library/java/jre:11.0.12_7_hs
FROM $PACKAGE AS package-image
WORKDIR app
COPY ./ .
RUN mvn clean package
FROM $JRE
WORKDIR /app
COPY --from=package-image /app/target/*.jar edda-hsbc.jar
ENTRYPOINT java ${JAVA_OPTS} -jar edda-hsbc.jar
